<!--认证获取方式-->
<template>
  <div class="box">
    <div class="box_header">
      <h3>{{ attestConfig.title }}</h3>
      <a-button class="line" @click="goBack">返回</a-button>
    </div>

    <div class="bottom_content">
      <div class="item" v-for="item in attestConfig.step">
        <h4>{{ item.step_name }}</h4>
        <p class="explain" v-if="item.step_explain">
          <span>{{ item.step_explain.replace(/截至日期选择最晚日期/g,'') }}</span>
          <span v-if="item.step_explain.includes('截至日期选择最晚日期')" style="font-weight: bold;color: #FF6A6A;">截至日期选择最晚日期</span>
        </p>
        <template v-if="isType.isArray(item.image_guide)==true">
          <div class="color" v-if="item.image_guide" >
            <img v-for="(item_,inde) in item.image_guide" :key="'img-'+inde" :src="item_" :style="{ width: item.image_width,height: item.image_height }" :alt="item.image_alt" :preview="0">
          </div>
        </template>
        <div  v-else  class="color" :style="{ width: item.image_width,height: item.image_height }">
          <img :src="item.image_guide" :alt="item.image_alt" :preview="0">
        </div>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  name: "authenticationMode",
  data(){
    return{
      config:{   //配置说明
        title: '',   //标题名称
        step: [
          {
            step_name: '',   //步骤标题
            step_explain: '',   //步骤说明
            image_guide: '',   //指引图片
            image_alt: '',   //图片说明
            image_width: '',  //图片宽度  px或 %
            image_height: '',  //图片高度
          }
        ],
      }
    }
  },
  props: ['attestConfig'],
  methods:{
    goBack(){
      this.$router.back()
      // this.isType.isArray
    }
  }
}
</script>

<style scoped lang="less">
.box{
  width: 100%;
  background: @color-white;
  padding: 32px 24px;
  .box_header{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    //margin-bottom: 20px;

    h3{
      font-size: 30px;
      color: @color-smudge;
    }
  }


  .bottom_content{
    width: 100%;
    color: @color-smudge;
    .item{
      width: 100%;
      padding-top: 30px;
      border-bottom: 1px solid #CCCCCC;
      h4{
        font-size: 20px;
      }
      .explain{
        font-size: 14px;
      }
      .color{
        //width: 100px;
        //height: 150px;
        border-radius: .1rem;
        cursor: pointer;
        margin: 20px 0;

        img{
          width: 100%;
          height: 100%;
          //border-radius: .1rem;
          vertical-align: middle;
        }
      }
    }
    .item:last-child{
      border-bottom: none;
    }
  }
}





</style>

